home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
rpg
/
crossfir.92
/
crossfir
/
crossfire-0.92.5
/
crossedit
/
Defines.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-24
|
1KB
|
70 lines
#ifndef _Defines_h_
#define _Defines_h_
#include <Posix.h>
#include <X11/Intrinsic.h>
#include <global.h>
#ifndef CrossEdit
#define CrossEdit
#endif
/*** kludge ***/
#ifdef FONTSIZE
#undef FONTSIZE
#endif
#define FONTSIZE 24
#define WIZARD_MODE
#define STACK_SIZE 40
#define STACK_MIN 4
#define STACK_MAX 12
#define MAPLIST_SIZE 10
#define STYPELIST_SIZE 10
#define FILENAME_SIZE PATH_MAX
#ifndef NeXT
#define EXIT_FAILURE 1
#endif
/*
* Map size limits
*/
#define MapMinWidth 6
#define MapMinHeight 6
#define MapMaxWidth 100
#define MapMaxHeight 100
#define AppClass "Crossedit"
typedef struct _Edit *Edit;
typedef struct _App *App;
typedef struct _Attr *Attr;
typedef struct mapdef *Map;
/*typedef struct obj *Object;*/
/* temporary kludge */
extern object *MapGetObjectZ (Map, int, int, int);
extern object *MapGetRealObject (Map, int, int, int);
#if 0
extern void MapInsertObjectZ(Map,object *, int, int, int);
#endif
extern int ObjectGetForeground(object *);
extern int ObjectGetBackground(object *);
extern void InitializeColors (Display *dpy);
extern object *ObjectCreateArch (archetype *);
void CrEditSelect(Widget w,XRectangle rect);
#endif
/* Useful macro */
#define HAS_COLOUR(widg) (PlanesOfScreen(XtScreen(widg)) > 1)
/*** end of Defines.h ***/